<template>
    <div class="img" @click="detail">
        <van-image  fill cover width="100%" height="100%" :src="imgSrc" />
    </div>
</template>

<script>
export default {
    name: "",
    props: {
        imgSrc: {
            type: String
        }
    },
    methods:{
        detail(){
            this.$router.push('/good/3')
        }
    }
};
</script>

<style scoped>
.img {
    width: 100%;
    height: 100%;
}
</style>
